package com.atguigu.dao;

import com.atguigu.entity.RolePermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hljstart
 * @create 2022-06-13-14:22
 */
public interface RolePermissionDao extends BaseDao<RolePermission> {


    List<Long> findPermissionIdsByRoleId(Long roleId);

    void deletePermissionIdsByRoleId(Long roleId);

    void addRoleIdAndPermission(@Param("roleId") Long roleId,@Param("permissionId") Long permissionId);
}
